package com.ruoyi.management.service;

import java.math.BigDecimal;
import java.util.List;

import com.basic.service.IBaseService;
import com.ruoyi.management.domain.CommissionManagementDetail;

/**
 * 佣金明细Service接口
 * 
 * @author ruoyi
 * @date 2024-01-17
 */
public interface ICommissionManagementDetailService extends IBaseService<CommissionManagementDetail>
{
 
	/**
     * 确认是否推荐过
     * @param userId 推荐人
     * @param  commissonManagentId 佣金管理id
     */ 
	int countByRecommendUser(int userId, int commissonManagentId);

	CommissionManagementDetail generate(int commissionId, BigDecimal amount, int userId);
	
}
